#!/usr/bin/python3
import re
with open('web.txt') as f:
    for i in f:
        if re.findall('\w+://\w+(?:\.\w+){1,3}',i):
            print(re.findall('\w+://\w+(?:\.\w+){1,3}',i))
